<%--
  Created by IntelliJ IDEA.
  User: Daver
  Date: 2019/12/19
  Time: 20:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>订单展示</title>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="0" id="mytable">
    <tr>
        <th>订单号</th>
        <%--<th>商品名称</th>
        <th>商品单价</th>
        <th>商品数量</th>--%>
        <th>商品总价</th>
        <th>收货地址</th>
        <th>订单时间</th>
        <th>订单状态</th>
    </tr>
<c:forEach items="${customerPojo.orderPojo}" var="order">
    <tr>
        <td>${order.oid}</td>
        <%--<td>${order.details.goods.gname}</td>--%>
        <%--<td>${order.details.odprice}</td>--%>
        <%--<td>${order.details.odnumber}</td>--%>
        <td>${order.ototal}</td>
        <c:if test="${order.addressId eq 1}">
            <td>合肥</td>
        </c:if>
        <c:if test="${order.addressId eq 2}">
            <td>南京</td>
        </c:if>
        <c:if test="${order.addressId eq 3}">
            <td>北京</td>
        </c:if>
        <td>${order.odate}</td>
        <c:if test="${order.ostatus eq 1}">
            <td>未支付</td>
        </c:if>
        <c:if test="${order.ostatus eq 2}">
            <td>已支付</td>
        </c:if>
        <c:if test="${order.ostatus eq 3}">
            <td>已发货</td>
        </c:if>
        <c:if test="${order.ostatus eq 4}">
            <td>超时</td>
        </c:if>


    </tr>
</c:forEach>
</table>
<a href="index.jsp">返回</a>
</body>
</html>
